#{extends 'CRUD/layout.html' /}

<div id="crudShow" class="${type.name}">
	
	<h2 id="crudShowTitle">&{'crud.show.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@save(object.id), enctype:'multipart/form-data'}
		#{crud.form fields:[ 'name' , 'project']}
	#{crud.custom 'name'}
			<label for="object_name">Name</label> 
			<input id="object_name" class="" type="text" name="object.name" value="${object.name}" size="50" /> 
			<span class="crudHelp"><font color="Red">*.MaxSize 100</font></span>
			#{/crud.custom}
	#{crud.custom 'project'}
			<label for="object_project">Project</label> 
			<span><font color="green">${object.project.name}</font></span>
			#{/crud.custom}
	
		#{/crud.form }
	<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
			<input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
		</p>
	#{/form}
	</div>
	
	#{form @delete(object.id)}
		<p class="crudDelete">
			<input type="submit" value="&{'crud.delete', type.modelName}" />
		</p>
	#{/form}

</div>